package one.stand.feign;

import one.stand.fallback.WechatFallBack;
import one.stand.request.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Administrator
 */
@Component
@FeignClient(value = "wechat-service", fallback = WechatFallBack.class, decode404 = true)
public interface WechatFegin {
    @PostMapping("wx/wxcallback")
    String wxcallback(@RequestBody ComponentVerifyTicketRequest request);
    @PostMapping("wx/program")
    String program(@RequestBody ComponentProgramRequest request);
}
